package com.inspur.s57.datacatalog.service;

import com.inspur.s57.datacatalog.entity.DataAttribute;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface DataAttributeService {

    boolean saveAttribute(DataAttribute attribute);

    Page<DataAttribute> findDataAttributesByClassIdAndNameLike(Integer classId, String name, Pageable pageable);

    DataAttribute findDataAttributeById(Integer id);

    boolean deleteAttributeById(Integer id);

    List<DataAttribute> findDataAttributesByClassId(Integer classId);

}
